package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.dto.DscScoreDto;
import com.zhijian.medical.entity.po.AssessmentDscPaperPerson;
import com.zhijian.medical.entity.vo.request.AssessmentDscPaperPersonSearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentDscPaperPersonVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssessmentDscPaperPersonMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据考核id进行删除
     *
     * @param assessmentId
     * @return
     */
    int deleteByAssessmentId(Long assessmentId);

    int insert(AssessmentDscPaperPerson record);

    int insertSelective(AssessmentDscPaperPerson record);

    AssessmentDscPaperPerson selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AssessmentDscPaperPerson record);

    /**
     * 打分进行的修改表操作
     *
     * @param dscScoreDto
     * @return
     */
    int score(DscScoreDto dscScoreDto);

    int updateByPrimaryKey(AssessmentDscPaperPerson record);

    int count(AssessmentDscPaperPersonSearchVo assessmentDscPaperPersonSearchVo);

    List<AssessmentDscPaperPersonVo> selectList(AssessmentDscPaperPersonSearchVo assessmentDscPaperPersonSearchVo);

    AssessmentDscPaperPersonVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<AssessmentDscPaperPerson> entities);
}